﻿@using KPIS.GERP.Models.ICM
@model Committee


@{
    Layout = "~/Views/Shared/_EmptyLayout.cshtml";
    ViewBag.Title = "รายละเอียด" + (Model.CommitteeId.ToString() ?? string.Empty);
}

<div class="block-button-menu-above">
    @Html.ActionLink("กลับไปหน้าแสดงข้อมูลทั้งหมด", "IndexDisposeCommittee", new { DisposeId = Model.RefId }
        , new { @class = "btn btn-gray button-standard-width btn-small", role="button" })
    
    @Html.ActionLink("  แก้ไข", "EditCommittee", new { id = Model.CommitteeId }
        , new { @class="btn btn-small btn-success button-standard-width icon-edit", role="button" })

    @Html.ActionLink("  ลบ", "DeleteCommittee", new { id = Model.CommitteeId, DisposeId = Model.RefId }
        , new { @class="btn btn-small btn-danger button-standard-width icon-trash", role="button" })

</div>

@Html.HiddenFor(model => model.CommitteeId)
@Html.HiddenFor(model => model.RecordStatus)

@if(Model != null)
{
<div class="widget-box">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">ข้อมูลคณะกรรมการ</h4>
    </div>

    <div class="widget-body">
        <div class="widget-body-inner">
			<div class="widget-main form-horizontal">
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.ComFunctionId)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.CommitteeFunction.LookUpName)
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.Code)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.Code)
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.ComPositionId)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.CommitteePosition.LookUpName)
                    </div>
                </div>
                 <div class="control-group">
                     <div class="control-label">
                        @Html.DisplayNameFor(model => model.ComTypeId)
                     </div>
                     <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.CommitteeType.LookUpName)
                     </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.EmpName)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.EmpName)
                    </div>
                </div>
            </div>
        </div>
    </div>
 </div>
}
